package com.cya.策略模式结合简单工程模式;

import java.util.Scanner;

/**
 * @author ：陈奕安（3048279304@qq.com）
 * @date ：Created in 2025/5/20 13:23
 * @description：
 * @modified By：
 * @version:
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("**********软件学院 21**班张三的节日促销方案**********");
        System.out.println("请输入节日名称：春节、中秋节、端午节");
        Scanner scanner=new Scanner(System.in);

        String sc=scanner.next();

        Strategy strategy = SimpleFactory.newStrategy(sc);
        SalesMan salesMan = new SalesMan(strategy);
        System.out.println("--------------"+sc+"的促销方案---------------");
        salesMan.salesManShow();
      /*  Scanner scanner = new Scanner(System.in);
        System.out.println("请输入节日名称：春节、中秋节、端午节");
        String festival = scanner.nextLine();
        System.out.println("**********软件学院 21**班张三的节日促销方案**********");
        Strategy strategy = SimpleFactory.newStrategy(festival);
        SalesMan salesMan = new SalesMan(strategy);
        System.out.println("---------------" + festival + "的促销方案---------------");
        salesMan.salesManShow();*/
    }
}